package disanzifu;

import java.util.Scanner;

/**
 * 键盘输入一个字符串，统计该字符串的大写，小写字母，数字字符出现的次数
 *数字：c>='0'&&c<='9'
 *小写：c>='a'&&c<='z'
 *大写：c>='A'&&c<='Z'
 */
public class String4 {
    public static void main(String[] args) {
        int big=0,small=0,num=0;
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        for (int i=0;i<next.length();i++){//遍历字符串
            if (next.charAt(i)>='a'&&next.charAt(i)<='z'){
                small++;
            }else if (next.charAt(i)>='A'&&next.charAt(i)<='Z'){
                big++;
            }else if (next.charAt(i)>='0'&&next.charAt(i)<='9'){
                num++;
            }
        }
        System.out.println("small:"+small);
        System.out.println("big:"+big);
        System.out.println("num:"+num);

        char[]str1 ={'a','b','c'};//字符数组
        for (int i = 0; i < str1.length; i++) {
            System.out.println("str1[i]="+str1[i]);
        }
        int[]str2 ={1,2,3};//整形数组
        for (int i = 0; i < str2.length; i++) {
            System.out.println("str2[i]="+str2[i]);
        }
    }
}
